home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / gfx / imagedes.lha / imagedesk / installID < prev   
Text File  |  1995-08-20  |  9KB  |  342 lines

  1. ; Install script for ImageDesk (Workbench 3.0 or higher)
  2.  
  3. (set @default-dest "work:ImageDesk")
  4. (set #CDir "C:")
  5. (set #KeyPath "S:")
  6.  
  7. ;=============================================================================
  8. ; English strings
  9.  
  10. (set default_lang 4)
  11.  
  12. (set #bad-kick "I'm sorry. ImageDesk needs Amiga-OS 3.0 or higher")
  13.  
  14. (set #install-msg
  15.     (cat
  16.      "\n\nImageDesk installation script.\n"
  17.      "Please read 'ImageDesk.guide' after this installation.\n"
  18.      "ImageDesk ©1994-1995 Reinhard Haslbeck\n"
  19.      "All rights reserved."
  20.     )
  21. )
  22.  
  23. (set #Proc-msg
  24.     (cat "Please choose one of the two program versions\n"
  25.          "which are listed below. The MC68020 version\n"
  26.          "should run on 030 and 040 machines too."
  27.     )
  28. )
  29.  
  30. (set #Wicon-msg "Which kind of icons do you prefer?")
  31.  
  32. (set #Exit-msg
  33.     (cat "ImageDesk now has been installed.\n"
  34.          "If You wanna have JPEG support, You have to\n"
  35.          "install the 'Tower JPEG Codec' too.\n"
  36.          "You will find it in the directory 'JPEG Codec'."
  37.     )
  38. )
  39.  
  40.  
  41. (set #Copy020Msg "Copying 68020 version...")
  42. (set #Copy000Msg "Copying 68000 version...")
  43. (set #AskDirMsg  "Please select a directory\nto install ImageDesk in")
  44. (set #CopyComMsg "These are a few useful tools.\nDo You want to intstall them?")
  45. (set #CopyKeyMsg "Installing keyfile...")
  46. (set #DontCopyMSg "I'm going to install Your keyfile.\nDon't give it away, it includes some\nof Your personal data!")
  47.  
  48. (set #AskCatMsg "Do You want to install some Catalog examples?")
  49. (set #PosMsg "Yes")
  50. (set #NegMsg "No")
  51. (set #CopyCatMsg "Copy these files?")
  52. (set #AskCatDescMsg "Do You want me to copy the catalog\ndescription file for developers?")
  53. (set #CopyCatDescMsg "Copying catalog description...")
  54. (set #CopyICONMsg "Working on default project icon")
  55. (set #ToolTypeMsg "Setting icon attributes")
  56. (set #AskRexxMsg "Do You want to install some AREXX example scripts?")
  57.  
  58. ;=============================================================================
  59. ; German strings
  60.  
  61. (if   (= @language "deutsch")
  62. (
  63.     (set default_lang 2)
  64.  
  65.     (set #bad-kick "Zu dumm! ImageDesk benötigt leider Amiga-OS 3.0 oder höher")
  66.  
  67.     (set #install-msg
  68.         (cat "\n\nImageDesk Installationsskript.\n"
  69.              "Nach dieser Installationsprozedur sollten\n"
  70.              "Sie unbedingt 'ImageDesk.guide' lesen.\n"
  71.              "ImageDesk ©1994-1995 Reinhard Haslbeck\n"
  72.              "All rights reserved."
  73.         )
  74.     )
  75.  
  76.     (set #Proc-msg
  77.         (cat "Wählen Sie bitte welche der beiden untenstehenden\n"
  78.              "Programmversionen installiert werden soll.\n"
  79.              "MC68020 sollte auch auf 030 und 040 Maschinen laufen."
  80.         )
  81.     )
  82.  
  83.     (set #Wicon-msg "Wählen Sie welche Icons\ninstalliert werden sollen.")
  84.  
  85.     (set #Exit-msg
  86.         (cat "ImageDesk ist nun installiert.\n"
  87.              "Wenn Sie JPEG Unterstützung haben wollen, müssen\n"
  88.              "Sie den 'Tower JPEG Codec', ebenfalls installieren.\n"
  89.              "Er befindet sich im Verzeichnis 'JPEG Codec'."
  90.         )
  91.     )
  92.  
  93.     (set #Copy020Msg "Kopiere 68020 Version...")
  94.     (set #Copy000Msg "Kopiere 68000 Version...")
  95.     (set #AskDirMsg  "Wählen Sie bitte ein Verzeichnis in-\ndem Imagedesk Installiert werden soll")
  96.     (set #CopyComMsg "Dies sind einige nützliche Tools.\nSollen sie installiert werden?")
  97.     (set #CopyKeyMsg "Installiere Keyfile...")
  98.     (set #DontCopyMSg "Es wird nun das Keyfile kopiert. Geben\nSie es keinesfalls weiter, es sind einige\nIhrer persönlichen Daten darin enthalten!")
  99.     (set #AskCatMsg "Sollen einige Catalog Beispiele installiert werden?")
  100.     (set #PosMsg "Ja")
  101.     (set #NegMsg "Nein")
  102.     (set #CopyCatMsg "Diese Dateien Kopieren?")
  103.     (set #AskCatDescMsg "Soll die Katalogbeschreibung\nfür Entwickler kopiert werden?")
  104.     (set #CopyCatDescMsg "Kopiere Katalogbeschreibung")
  105.     (set #CopyICONMsg "Arbeite am default project icon")
  106.     (set #ToolTypeMsg "Setze Icon-Attribute")
  107.     (set #AskRexxMsg "Sollen einige AREXX Beispiele installiert werden?")
  108.  
  109.  
  110. ))
  111. ;=============================================================================
  112. ; make sure we are running under a 3.0 OS
  113.  
  114. (if (< (/ (getversion) 65536) 39)
  115. (
  116.     (abort #bad-kick)
  117. ))
  118.  
  119. ;=============================================================================
  120.  
  121. (message #install-msg)
  122.  
  123. (set ProcVers (askchoice
  124.                         (prompt #Proc-msg)
  125.                         (help @askchoice-help)
  126.                         (choices "MC68020" "MC68000")
  127.               )
  128. )
  129.  
  130. (set WhichIcons (askchoice
  131.                         (prompt #Wicon-msg)
  132.                         (help @askchoice-help)
  133.                         (choices "Standard" "MagicWB-Style")
  134.                 )
  135. )
  136.  
  137.  
  138. (set @default-dest (askdir
  139.                        (prompt #AskDirMsg)
  140.                        (help @askdir-help)
  141.                        (default @default-dest)
  142.                    )
  143. )
  144. (complete 10)
  145.  
  146. ;====== copy english stuff ======
  147. (if (= default_lang 4)
  148. (
  149.     (copyfiles
  150.         (prompt "Copying guide file...")
  151.         (help @copyfiles-help)
  152.         (source "InstData/ImageDeskE.guide")
  153.         (dest @default-dest)
  154.         (newname "ImageDesk.guide")
  155.         (infos)
  156.         (confirm)
  157.     )
  158.  
  159.     (if (exists "InstData/OrderForm")
  160.     (
  161.         (copyfiles
  162.             (prompt "Copying OrderForm file...")
  163.             (help @copyfiles-help)
  164.             (source "InstData/OrderForm")
  165.             (dest @default-dest)
  166.             (newname "OrderForm")
  167.             (infos)
  168.             (confirm)
  169.         )
  170.     ))
  171. ))
  172.  
  173. ;====== copy German stuff ======
  174. (if (= default_lang 2)
  175. (
  176.     (copyfiles
  177.         (prompt "Kopiere guide Datei...")
  178.         (help @copyfiles-help)
  179.         (source "InstData/ImageDeskD.guide")
  180.         (dest @default-dest)
  181.         (newname "ImageDesk.guide")
  182.         (infos)
  183.         (confirm)
  184.     )
  185.  
  186.     (if (exists "InstData/Bestellformular")
  187.     (
  188.         (copyfiles
  189.             (prompt "Kopiere Bestellformular...")
  190.             (help @copyfiles-help)
  191.             (source "InstData/Bestellformular")
  192.             (dest @default-dest)
  193.             (newname "Bestellformular")
  194.             (infos)
  195.             (confirm)
  196.         )
  197.     ))
  198. ))
  199. (complete 30)
  200.  
  201. ;====== install 68020 version =====
  202. (if (= ProcVers 0)
  203. ;then
  204.     (copyfiles
  205.         (prompt #Copy020Msg)
  206.         (help @copyfiles-help)
  207.         (source "InstData/ImageDesk.020")
  208.         (dest @default-dest)
  209.         (newname "ImageDesk")
  210.         (infos)
  211.         (confirm)
  212.     )
  213. ;)
  214. ;====== install 68000 version =====
  215. ;else
  216.     (copyfiles
  217.         (prompt #Copy000Msg)
  218.         (help @copyfiles-help)
  219.         (source "InstData/ImageDesk.000")
  220.         (dest @default-dest)
  221.         (newname "ImageDesk")
  222.         (infos)
  223.         (confirm)
  224.     )
  225. )
  226. (complete 40)
  227.  
  228. ;== install default project icon ==
  229. (if (= WhichIcons 0)
  230. ;then Standard Icons
  231.     (copyfiles
  232.         (prompt #CopyICONMsg)
  233.         (help @copyfiles-help)
  234.         (source "InstData/ID_DefProjIcon.info")
  235.         (dest @default-dest)
  236.         (newname "ID_DefProjIcon.info")
  237.         (confirm)
  238.     )
  239. ;else MagicWBIcons
  240.     (
  241.     (copyfiles
  242.         (prompt #CopyICONMsg)
  243.         (help @copyfiles-help)
  244.         (source "InstData/ID_DefProjIconMWB.info")
  245.         (dest @default-dest)
  246.         (newname "ID_DefProjIcon.info")
  247.         (confirm)
  248.     )
  249.     (copyfiles
  250.         (prompt #CopyICONMsg)
  251.         (help @copyfiles-help)
  252.         (source "InstData/ImageDeskMWB.info")
  253.         (dest @default-dest)
  254.         (newname "ImageDesk.info")
  255.         (confirm)
  256.     )
  257.     )
  258. )
  259. (tooltype
  260.     (prompt #ToolTypeMsg)
  261.     (help @tooltype-help)
  262.     (dest (tackon @default-dest "ID_DefProjIcon"))
  263.     (setdefaulttool (tackon @default-dest "ImageDesk"))
  264.     (confirm)
  265. )
  266. (complete 50)
  267.  
  268. ;====== install Catalog tools =====
  269. (copyfiles
  270.     (prompt #CopyComMsg)
  271.     (help @copyfiles-help)
  272.     (source "InstData/c/")
  273.     (dest #CDir)
  274.     (all)
  275.     (confirm 1)
  276. )
  277. (complete 70)
  278.  
  279. ;====== Copy example Catalogs =====
  280. (if (askbool (prompt #AskCatMsg) (choices #PosMsg #NegMsg) (help @askbool-help))
  281. (
  282.     (copyfiles
  283.         (prompt #CopyCatMsg)
  284.         (help @copyfiles-help)
  285.         (source "InstData/example/")
  286.         (dest (tackon @default-dest "example"))
  287.         (all)
  288.         (confirm 1)
  289.     )
  290. ))
  291. (complete 80)
  292.  
  293. ;====== Copy catalog description =====
  294. (if (askbool (prompt #AskCatDescMsg) (choices #PosMsg #NegMsg) (help @askbool-help))
  295. (
  296.     (copyfiles
  297.         (prompt #CopyCatDescMsg)
  298.         (help @copyfiles-help)
  299.         (source "InstData/CatDescription")
  300.         (dest @default-dest)
  301.         (newname "CatDescription")
  302.         (infos)
  303.         (confirm)
  304.     )
  305. ))
  306. (complete 85)
  307.  
  308. ;====== Copy rexx Scripts =====
  309. (if (askbool (prompt #AskRexxMsg) (choices #PosMsg #NegMsg) (help @askbool-help))
  310. (
  311.     (copyfiles
  312.         (prompt #CopyCatMsg)
  313.         (help @copyfiles-help)
  314.         (source "InstData/rexx/")
  315.         (dest (tackon @default-dest "rexx"))
  316.         (all)
  317.         (confirm 1)
  318.     )
  319. ))
  320. (complete 90)
  321.  
  322. ;====== install keyfile ========
  323. (if (= (run "GetEnv KEYPATH") 0)
  324. (
  325.  (set #KeyPath (getenv "KEYPATH"))
  326. )
  327. )
  328. (if (exists "s/ImageDesk.Key")
  329. (
  330.     (message #DontCopyMsg)
  331.     (copyfiles
  332.         (prompt #CopyKeyMsg)
  333.         (help @copyfiles-help)
  334.         (source "s/ImageDesk.Key")
  335.         (dest #KeyPath)
  336.         (newname "ImageDesk.Key")
  337.     )
  338. )
  339. )
  340. (message #exit-msg)
  341. (complete 100)
  342.